import request from "../axios";

export default {
	/**
	 * 获取销售额
	 * @param {Object} params
	 */ 
	salesAmount(params){
		return request({
			method: "POST",
			url: '/masterControl/salesAmount',
			data: params
		})
	},
	/**
	 * 获取回款额
	 * @param {Object} params
	 */
	refundAmount(params){
		return request({
			method: "POST",
			url: '/masterControl/refundAmount',
			data: params
		})
	},
	/**
	 * 获取订单量
	 * @param {Object} params
	 */
	orderTotal(params){
		return request({
			method: "POST",
			url: '/masterControl/orderTotal',
			data: params
		})
	},
	/**
	 * 获取客户量
	 * @param {Object} params
	 */
	clientTotal(params){
		return request({
			method: "POST",
			url: '/masterControl/clientTotal',
			data: params
		})
	},
	/**
	 * 客户量排行
	 * @param {Object} params
	 */
	clientRanking(params){
		return request({
			method: "POST",
			url: '/masterControl/clientRanking',
			data: params
		})
	},
	/**
	 * 考勤排行
	 * @param {Object} params
	 */
	attendanceRanking(params){
		return request({
			method: "POST",
			url: '/masterControl/attendanceRanking',
			data: params
		})
	},
	/**
	 * 获取消息通知列表
	 * @param {Object} params
	 */
	getMsgNotificationList(params){
		return request({
			method: "POST",
			url: '/masterControl/getMsgNotificationList',
			data: params
		})
	},
	/**
	 * 修改消息通知状态
	 * @param {Object} params
	 */
	updateMsgNotification(params){
		return request({
			method: "POST",
			url: '/masterControl/updateMsgNotification',
			data: params
		})
	},
	/**
	 * 获取月份销售额
	 * @param {Object} params
	 */
	getSaleroomMonth(params){
		return request({
			method: "POST",
			url: '/masterControl/getSaleroomMonth',
			data: params
		})
	},
	/**
	 * 获取工作时长
	 * @param {Object} params
	 */
	getWorkingHoursMonth(params){
		return request({
			method: "POST",
			url: '/masterControl/getWorkingHoursMonth',
			data: params
		})
	},
	/**
	 * 删除消息
	 * @param {Object} params
	 */
	deleteMsgNotification(params){
		return request({
			method: "POST",
			url: '/masterControl/deleteMsgNotification',
			data: params
		})
	},
	/**
	 * 一键删除消息
	 * @param {Object} params
	 */
	deleteMsgAll(params){
		return request({
			method: "POST",
			url: '/masterControl/deleteMsgAll',
			data: params
		})
	},
}